package chain.aimpl;

import java.util.List;

public class Boss extends AbstractHandler {
    @Override
    public List<String> doChain(int money, List<String> names) {
        if(money<20000){
             names.add("王五");
            names.add("王五女儿");
        }

        if(nextHandler!=null){
            return nextHandler.doChain(money, names);
        }

        return names;
    }
}
